import { Model } from '@wattjs/network'
import Http from './index'
const PREFIX = '/openapi'

export const getUploadToken = Model(Http, {
  prefix: PREFIX,
  url: '/qiniu/getUploadToken',
  canRepeat: true,
  method: 'POST'
})

export const getUploadPage = Model(Http, {
  prefix: PREFIX,
  url: '/qiniu/getUploadPage',
  method: 'POST',
  timeout: 10000
})

export const deleteUpload = Model(Http, {
  prefix: PREFIX,
  url: '/qiniu/deleteUpload',
  method: 'POST'
})
